#LINK_DIRECTORIES(/usr/local/lib/ffmpeg_tmp/)

add_executable( codec src/demo.cpp )

target_compile_definitions( codec PRIVATE APP_NAME="wifiMonitor" )

#apt list
#xcb
#lzma lzma-dev
#libva-dev

#https://stackoverflow.com/questions/41608136/sdl-sndioaudio-c-undefined-reference-to-sio
#https://github.com/smanders/externpro/issues/212
#https://github.com/sourcey/libsourcey/issues/214
#undefined reference to symbol 'XShmDetach'
#libavcodec.so: undefined reference to symbol 'vaCreateConfig'
#/usr/local/lib/ffmpeg_tmp/
#
target_link_libraries(codec
        -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale
        -lavutil
        #-lxcb -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb-render
        -lX11  -lz -pthread
        -lm -lva  Xv va-x11 va-drm -lSDL2
        -lasound -lsndio
        #-lbz2 -llzma
        Xext
        )


target_link_directories(codec PUBLIC "/usr/local/lib/ffmpeg_tmp/")